Xbasic

SQL::ConnectionGenerateCreateDatabaseStatement Method

Syntax

SQL_Statement as C = GenerateCreateDatabaseStatement as C (Database as C)

Arguments

DatabaseCharacter

The name of the database to create.

Returns

SQL_StatementCharacter

An add user group statement appropriate for the database.

Description

Generate a SQL Create Database statement for the table passed in.

Discussion

The .GenerateCreateDatabaseStatement() method returns the SQL statement that create a database. Note: Not all databases vendors support creating a database through SQL.

Example

dim conn as SQL::Connection
conn.open("{A5API=Access,FileName='C:\Program Files\A5V8\MDBFiles\Alphasports.mdb',UserName='Admin'}")
? conn.GenerateCreateDatabaseStatement("Albany")
= ""

See Also